<template>
  <div>
    <el-dialog
      title="新增工单"
      :visible="showDialog"
      width="30%"
      @close="close"
    >
      <el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-width="80px">
        <el-form-item label="设备编号" prop="innerCode">
          <el-input v-model="ruleForm.innerCode" placeholder="请输入设备编号" />
        </el-form-item>
        <el-form-item label="工单类型" prop="productType">
          <el-select v-model="ruleForm.productType" placeholder="请选择工单类型" style="width: 100%;">
            <el-option label="区域一" value="shanghai" />
            <el-option label="区域二" value="beijing" />
          </el-select>
        </el-form-item>
        <el-form-item label="补货数量" prop="name">
          <span style="color: #90a9ff;">补货详情</span>
        </el-form-item>
        <el-form-item label="运营人员" prop="userId">
          <el-select v-model="ruleForm.userId" placeholder="请选择工单类型" style="width: 100%;">
            <el-option label="区域一" value="shanghai" />
            <el-option label="区域二" value="beijing" />
          </el-select>
        </el-form-item>
        <el-form-item label="备注" prop="desc">
          <el-input v-model="ruleForm.desc" type="textarea" />
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button @click="close">取 消</el-button>
        <el-button type="primary">确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>
<script>
export default {
  name: '',
  props: {
    showDialog: {
      type: Boolean
    }
  },
  data() {
    return {
      ruleForm: {},
      rules: {}
    }
  },
  computed: {
  },
  created() {
  },
  methods: {
    close() {
      // console.log(this.$emit)
      this.$emit('update:showDialog', false)
    }
  }
}
</script>
<style lang='scss'  scoped>

</style>
